package com.across.connect.model;

import com.across.connect.util.EmailHashUtil;
import java.io.Serializable;

public class MyUser implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 175499944757799835L;
	private int id = 0;
	private int xnuid = 0;
	private String userName = "";
	private String password = "";
	private String email = "";
	private String name = "";
	private String emailHash = "";


	public MyUser(){
		
	}
	
	public MyUser(String userName, String passWord, String name, String email){
		this.setUserName(userName);
		this.setPassword(passWord);
		this.setName(name);
		this.setEmail(email);
		this.setEmailHash(EmailHashUtil.getEmailHash(email));
	}
	
	public String getEmailHash() {
		return emailHash;
	}

	public void setEmailHash(String emailHash) {
		this.emailHash = emailHash;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getXnuid() {
		return xnuid;
	}

	public void setXnuid(int xnuid) {
		this.xnuid = xnuid;
	}
}
